package com.umpay.sp.saas.util;

import java.util.HashMap;
import java.util.Map;
import com.umpay.sp.model.common.ReqMessage;
import com.umpay.sp.web.util.DateUtil;


/**
 * 组装请求server信息（ReqMessage）的类
 * @author ChenFuLong
 *
 */
public class ReqMessageUtil {

	public static Map<String, Object> makeCrmMap(){
		Map<String, Object> req = new HashMap<String, Object>();
		req.put("rpid", "SAAS" + DateUtil.getSystemDate("HHmmss"));
		return req;
	}
	
	public static ReqMessage makeSpReq(){
		ReqMessage req = new ReqMessage();
		req.setReqDate(DateUtil.getSystemDate("yyyyMMdd"));
		req.setReqTime(DateUtil.getSystemDate("HHmmss"));
		req.setRpid("SAAS" + System.currentTimeMillis());
		return req;
	}
	
	public static com.umpay.operation.common.ReqMessage makeOpReq(){
		com.umpay.operation.common.ReqMessage req=new com.umpay.operation.common.ReqMessage();
		req.setReqDate(DateUtil.getSystemDate("yyyyMMdd"));
		req.setReqTime(DateUtil.getSystemDate("HHmmss"));
		req.setRpid("SAAS" + System.currentTimeMillis());
		return req;
	}
}
